import {
    router
} from "../router/index";
const LoginAction = {};
const VIRTUAL_PATH = process.env.VUE_APP_VIRTUAL_PATH
LoginAction.isLogin = function (user) {
  console.log(router);
  if (user && user.uid != null) {
    
    router.push(`${VIRTUAL_PATH}/main`);

    return true;
  } else {
    return false;
  }
};

export default LoginAction;
